const http = require('../app/util/query')
const proxys = require('../app/proxy/index')

http.get('userFund/getUserNetValues').then((res) => {
  res.data.list.forEach(async (item) => {
    await proxys.UserNetValue.newAndSave({
      user_name: item.user_name,
      net_value_date: item.net_value_date,
      shares: item.shares,
      asset: item.asset,
      asset_cost: item.asset_cost,
      net_value: item.net_value
    })
  })
})
